package cn.ainit.butn.proceduce;

import cn.ainit.sys.ds.cloumns.sysCloumnsId;
// default package

/**
 * sysCloumnsId entity. @author MyEclipse Persistence Tools
 */

public class CommonProcedurepk  implements java.io.Serializable {
     /**
	 * 
	 */
	private static final long serialVersionUID = 471406306411644701L;
	private String dsId;
     private String code;


    // Constructors

    /** default constructor */
    public CommonProcedurepk() {
    }

    
    /** full constructor */
    public CommonProcedurepk(String dsId, String code) {
        this.dsId = dsId;
        this.code = code;
    }

   
    // Property accessors

    public String getDsId() {
        return this.dsId;
    }
    
    public void setDsId(String dsId) {
        this.dsId = dsId;
    }

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof CommonProcedurepk) ) return false;
		 CommonProcedurepk castOther = ( CommonProcedurepk ) other; 
         
		 return ( (this.getDsId()==castOther.getDsId()) || ( this.getDsId()!=null && castOther.getDsId()!=null && this.getDsId().equals(castOther.getDsId()) ) )
 && ( (this.getCode()==castOther.getCode()) || ( this.getCode()!=null && castOther.getCode()!=null && this.getCode().equals(castOther.getCode()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getDsId() == null ? 0 : this.getDsId().hashCode() );
         result = 37 * result + ( getCode() == null ? 0 : this.getCode().hashCode() );
         return result;
   }   





}